package com.hsgene.product.service;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.product.condition.CommentCondition;
import com.hsgene.product.domain.GeneticComment;
import com.hsgene.product.domain.GeneticCommentReply;
import com.hsgene.product.dto.GeneticCommentDto;
import com.hsgene.product.dto.CommentPackageDto;
import com.hsgene.product.dto.GeneticCommentDto;

/**
 * @Description: 商品评论
 * @ProjectName: hdas-geneshop
 * @Package: com.hsgene.product.service
 * @Author: FX
 * @CreateDate: 2018/10/19 10:09
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 */
public interface CommentService {
    /**
     *添加回复
     * @author FX
     * @date 2018/10/19 10:52
     * @param geneticCommentReply
     * @return
     */
    ApiResult addGeneticCommentReply(GeneticCommentReply geneticCommentReply);
    /**
     *根据id查找评论
     * @author FX
     * @date 2018/10/19 11:40
     * @param id
     * @return
     */
    ApiResult<GeneticCommentDto> getCommentById(String id);

    /**
     * 商品评价列表
     * @author jcl
     * @date 2018/10/19 15:04
     * @param condition 查询条件
     * @return
     */
    ApiResult comments(CommentCondition condition);
}
